<div class="dialog-container mdd-dialog mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog B0210-dialog c-mdd-page" ng-init="dialog.init();" style="background-color: #fafafa" page-type="Dialog" _transclude-elem="[object Object]">
    <div class="kmi-header-row">
        <div class="header-title" ng-bind="dialog._title | translate"></div>
        <!--More Menu-->

        <!--Close button-->
        <div class="kmi-side-btn right" ng-click="dialog.hide();">
            <img src="image/icons/clear.png" />
            <div class="kmi-can-click"></div>
        </div>
    </div>
    <div class="kmi-layout-main-content" style="flex: 1">
        <!--Page-->
        <div class="kmi-layout-page">
            <div class="mdd-layout__with-toolbar mdd-layout c-mdd-layout" layout-name="B0210" page-name="" page-type="Dialog" with-toolbar="Y" reload="N" _transclude-elem="[object Object]" style="grid-template-columns: repeat(3, auto 1fr)">
                <div class="kmi-text-fields" item-name="machine_display" ng-if="!(dialog.selectedEquipmentList.length >= 2)" style="grid-column-start: span 2">
                    <label class="label" ng-bind="'B0210.equipment' | translate" ng-if="!(dialog.selectedEquipmentList.length >= 2)"></label>
                    <label class="value" ng-bind="dialog.machine_display" ng-if="!(dialog.selectedEquipmentList.length >= 2)"></label>
                </div>
                <div class="kmi-text-fields" item-name="equipmentcheckuprate" style="grid-column-start: span 2">
                    <!-- <label class="label" ng-bind="'B0210.checkFrequency' | translate"></label> -->
                    <!-- 20210506 Modify by德義家興for#91011: [标准][DEV][行业议题]机加工-CNC-批量设备点检 -->
                    <label class="label" ng-bind="'B0210.checkFrequency' | translate"></label>
                    <input ng-model="dialog.equipmentcheckuprate" readonly="readonly" ng-click="dialog.getEquipmentCheckUprate();" ng-if="!(dialog.selectedEquipmentList.length >= 2)" />
                    <input ng-model="dialog.equipmentcheckuprate" readonly="readonly" ng-click="dialog.getMultiSelectedEquipmentCheckUprate();" ng-if="(dialog.selectedEquipmentList.length >= 2)" />
                    <div class="tip"><i class="material-icons"></i></div>
                </div>
                <label class="label" ng-show="dialog._event['checklist_display'].isShown != 'N'" style="" ng-bind="'B0210.columns.checklist_display' | translate"></label>
                <div class="value" ng-show="dialog._event['checklist_display'].isShown != 'N'" style=""><label class="value" ng-bind="dialog.checklist_display" mdl-toast="{{dialog.checklist_display}}" mdl-toast-passive="true"></label></div>
                <div class="mdd-list c-mdd-list" null="" ng-show="dialog._event['B0210_Table'].isShown != 'N'" style="height:{{dialog._event['B0210'].GetfillHeight()}};grid-column-start:span 6;" list-name="B0210_Check_Table" list-bind="dialog.B0210_Table" list-alias="dialog.machineCheckList_display" enable-select="N" select-all="N" page-name="" page-type="Dialog" _transclude-elem="[object Object]">
                    <div class="kmi-list column-selector" kmi-scrollbar="496px" column-selector-id="B0210_Check_Table" style="flex: 1">
                        <div class="kmi-list__header">
                            <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.B0210_Table.item_no'].isShown != 'N'">
                                <div class="filter" ng-show="dialog._objB0210_Table.header[0].isFilter">
                                    <input ng-model="dialog._objB0210_Table.filterColumns['item_no']" />
                                    <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objB0210_Table.header[0].isFilter = false;dialog._objB0210_Table.filterColumns['item_no'] = '';">clear</i>
                                </div>

                                <div class="order" ng-hide="dialog._objB0210_Table.header[0].isFilter">
                                    <i class="material-icons search" style="z-index: 1" ng-click="dialog._objB0210_Table.header[0].isFilter = true">search</i>
                                    <label ng-bind="'B0210_Check_Table.columns.item_no' | translate"></label>
                                    <i class="material-icons" ng-show="dialog._objB0210_Table.queryOrder == 0">{{!dialog._objB0210_Table.header[0].order?'':''}}</i>
                                    <div class="kmi-can-click" ng-click="dialog.orderResult(0, 'item_no', 'dialog._objB0210_Table');"></div>
                                </div>
                            </div>
                            <div class="kmi-list__column" ng-bind="'B0210.checkItem' | translate" item-name="check_item" style="flex: 1 1 0%; z-index: 1; pointer-events: auto"></div>
                            <div class="kmi-list__column head-controls" style="flex: 1" ng-show="dialog._event['dialog.B0210_Table.check_method'].isShown != 'N'">
                                <div class="filter" ng-show="dialog._objB0210_Table.header[2].isFilter">
                                    <input ng-model="dialog._objB0210_Table.filterColumns['check_method']" />
                                    <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objB0210_Table.header[2].isFilter = false;dialog._objB0210_Table.filterColumns['check_method'] = '';">clear</i>
                                </div>

                                <div class="order" ng-hide="dialog._objB0210_Table.header[2].isFilter">
                                    <i class="material-icons search" style="z-index: 1" ng-click="dialog._objB0210_Table.header[2].isFilter = true">search</i>
                                    <label ng-bind="'B0210_Check_Table.columns.check_method' | translate"></label>
                                    <i class="material-icons" ng-show="dialog._objB0210_Table.queryOrder == 2">{{!dialog._objB0210_Table.header[2].order?'':''}}</i>
                                    <div class="kmi-can-click" ng-click="dialog.orderResult(2, 'check_method', 'dialog._objB0210_Table');"></div>
                                </div>
                            </div>
                            <div class="kmi-list__column" item-name="check_standard" ng-bind="'B0210.check_standard' | translate" style="flex: 2; position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between"></div>
                            <div class="kmi-list__column head-controls" style="flex: 0 0 200px" ng-show="dialog._event['dialog.B0210_Table.check_value'].isShown != 'N'">
                                <div class="filter" ng-show="dialog._objB0210_Table.header[4].isFilter">
                                    <input ng-model="dialog._objB0210_Table.filterColumns['check_value']" />
                                    <i class="material-icons clear" style="position: absolute; top: 2px; right: 4px" ng-click="dialog._objB0210_Table.header[4].isFilter = false;dialog._objB0210_Table.filterColumns['check_value'] = '';">clear</i>
                                </div>

                                <div class="order" ng-hide="dialog._objB0210_Table.header[4].isFilter">
                                    <i class="material-icons search" style="z-index: 1" ng-click="dialog._objB0210_Table.header[4].isFilter = true">search</i>
                                    <label ng-bind="'B0210_Check_Table.columns.check_value' | translate"></label>
                                    <i class="material-icons" ng-show="dialog._objB0210_Table.queryOrder == 4">{{!dialog._objB0210_Table.header[4].order?'':''}}</i>
                                    <div class="kmi-can-click" ng-click="dialog.orderResult(4, 'check_value', 'dialog._objB0210_Table');"></div>
                                </div>
                            </div>
                            <div class="kmi-list__column" item-name="check_type" ng-bind="'B0210.pass_or_not'| translate" style="flex: 0 0 200px; padding: 0px 0px 0px 4px"></div>
                        </div>
                        <div class="kmi-list__row-content">
                            <div class="kmi-list__row" id="B0210_Check_Table_result_list" ng-repeat="item in dialog._event['dialog.B0210_Table'].getPages(dialog.machineCheckList_display, dialog._objB0210_Table.PageConfig, dialog._objB0210_Table.filterColumns, dialog._objB0210_Table.header[dialog._objB0210_Table.queryOrder]) track by $index" ng-class="{'is-select':dialog._event['dialog.B0210_Table'].checkSelect(item, {index:$index, event:$event})}">
                                <div class="kmi-list__column column-input" style="flex: 1; z-index: 1" ng-class="{'column-border':!$last}" ng-show="dialog._event['dialog.B0210_Table.item_no'].isShown != 'N'">{{item.item_no}}</div>
                                <div class="kmi-list__column column-border is-wrap column2 ng-binding" item-name="check_item" style="flex: 1 1 0%; z-index: 1; pointer-events: auto" ng-bind="item.check_item" ng-click="$root.showToast(detail.check_item);"></div>
                                <div class="kmi-list__column column-input" style="flex: 1; z-index: 1" ng-class="{'column-border':!$last}" ng-show="dialog._event['dialog.B0210_Table.check_method'].isShown != 'N'">{{item.check_method}}</div>
                                <div class="kmi-list__column" item-name="check_standard" style="flex: 2; position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; white-space: break-spaces">
                                    <label ng-if="item.check_type == '1'" ng-bind="item.std_value"></label>
                                    <label ng-if="item.check_type == '2'" ng-bind="('B0210.min' | translate)+item.range_min+' '+('B0210.max' | translate)+item.range_max"></label>
                                    <!-- <input class="calculater-input" ng-model="item.check_value" ng-class="{true:'is-focus', false:'not-focus'}[item.calculaterInput]" 
                            ng-if="item.check_type=='1' || item.check_type=='2'" style="width:120px; padding: 2px 0px; height: 28px;" readonly>
                            <div class="calculater-input-click" ng-if="item.check_type=='1' || item.check_type=='2'" ng-click="dialog.calculater(item, true);" mdl-calculater-decimal="true"></div> -->
                                    <label ng-if="item.check_type == '3'" ng-bind="item.check_standard"></label>
                                    <label ng-if="item.check_type == '4'" ng-bind="item.check_standard"></label>
                                    <!-- <input ng-if="item.check_type == '4'" style="width:100px; padding: 2px 0px; height: 28px;" ng-model="item.check_value"/> -->
                                </div>
                                <div class="kmi-list__column" style="flex: 0 0 200px; padding: 0px 0px 0px 4px; z-index: 2; position: relative" item-name="check_value">
                                    <input class="calculater-input" ng-model="item.check_value" ng-class="{true:'is-focus', false:'not-focus'}[item.calculaterInput]" ng-if="item.check_type=='1' || item.check_type=='2'" style="width: 120px; padding: 2px 0px; height: 28px" readonly="" />
                                    <div class="calculater-input-click" ng-if="item.check_type=='1' || item.check_type=='2'" ng-click="dialog.calculater(item, true);" mdl-calculater-decimal="true"></div>
                                    <input ng-if="item.check_type == '4'" style="width: 120px; padding: 2px 0px; height: 28px" ng-model="item.check_value" />
                                </div>
                                <div class="kmi-list__column" style="flex: 0 0 200px; padding: 0px 0px 0px 4px; z-index: 2" item-name="check_type">
                                    <!-- 20230717 modify by Alan for#140596 : 修正check_result不正確的問題 -->
                                    <div ng-if="item.check_type!='3'" style="width: 24px; height: 24px" ng-class="[dialog.itemStatus(item)]"></div>
                                    <div ng-if="item.check_type=='3'" class="check-point-switch" ng-class="{'is-selected':item.check_value == '1'}" ng-click="dialog.itemClick(item);">
                                        <div style="width: 24px; height: 24px"></div>
                                    </div>
                                </div>
                                <div class="kmi-can-click" ng-click="dialog._event['dialog.B0210_Table'].rowClick(item, {index:$index, event:$event});"></div>
                            </div>
                        </div>
                    </div>
                    <div class="page-content">
                        <div class="page-icon">
                            <img src="image/icons/dropleft.png" />
                            <div class="kmi-can-click" ng-click="dialog.prevPage(dialog._objB0210_Table.PageConfig);"></div>
                        </div>
                        <label ng-bind="dialog.pageInfo(dialog._objB0210_Table.PageConfig);"></label>
                        <div class="page-icon">
                            <img src="image/icons/dropright.png" />
                            <div class="kmi-can-click" ng-click="dialog.nextPage(dialog._objB0210_Table.PageConfig);"></div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="mdd-button-tool">
                <div class="tool-bar"></div>
                <div class="tool-bar" style="justify-content: flex-end">
                    <div class="kmi-button kmi-button-confrim btn-confirm" ng-disabled="dialog._fn['Execute'].isDisabled == 'Y'" ng-hide="dialog._fn['Execute'].isShown == 'N'" style="width: 100px">
                        <label ng-bind="'common.btn.confirm' | translate"></label>
                        <div class="kmi-can-click" ng-click="dialog._fn['Execute'].click('Execute');"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
